home *** CD-ROM | disk | FTP | other *** search
- Path: canyon.sr.hp.com!rolando
- From: rolando@sr.hp.com (Rolando Ampuero)
- Newsgroups: comp.lang.c++
- Subject: new and 2-D Arrays?
- Date: 7 Feb 1996 17:12:05 GMT
- Organization: Hewlett Packard Sonoma County
- Message-ID: <4famh5$chp@canyon.sr.hp.com>
- NNTP-Posting-Host: romulus.sr.hp.com
- X-Newsreader: TIN [version 1.2 PL2.2]
-
- Hello, This question was problably asked already, but as a newbie in the
- world of C++, this is one place I found that relates to this subject.
- According to several manuals that I have read I can declare a two dimensional
- array in this manner
-
- int *myptr = new int [8][8];
-
- but when I tried to compile I get errors, is this not the correct way to do
- it? Are the books wrong? (One of the books is Deitel pg 415).
-
- If there is a FAQ site where I can go to, please let me know.
-
- --
- ___________________________________________________________________________
- \___________________________________________________________________________
- \_ Rolando A. Ampuero \_ \_
- \_ \_ Voice (707) 577-2668 \_
- \_ Hewlett Packard Company \_ Fax (707) 577-4656 \_
- \_ Microwave Instruments Division \_ \_
- \_ 1400 Fountaingrove Parkway \_ E-mail: \_
- \_ Santa Rosa, CA 95403 \_ rolando@sr.hp.com \_
- \________________________________________\________________________________\_
- \___________________________________________________________________________
-